package cn.zhengzhou.springbootmybatis.demo;

public class move {
    public static void main(String[] args) {
        move1(Direction.Down);
    }
    public static void move1(Direction direction){

        switch (direction){
            case Up:
                System.out.println("向上移动");
                break;
            case Down:
                System.out.println("向下移动");
                break;
            case Left:
                System.out.println("向左移动");
                break;
            case Right:
                System.out.println("向右移动");
                break;
            default:
                System.out.println("输入有错");

        }
    }
}
